#pragma once

#include <QTableView>

class QTimeView : public QTableView
{
    Q_OBJECT
public:
    explicit QTimeView(QWidget *parent = nullptr);

    void internalUpdate();

signals:
    void valueChanged(int value);

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;

    int handleMouseEvent(QMouseEvent *event);

private:
    bool _validValueClicked{ false };
};
